﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace suanpan.API.Components.Exceptions
{
    class AuthorizationException : RESTException
    {
        public AuthorizationException(Exception ex)
            : base(ex, HttpStatusCode.Unauthorized, string.Format("Authorization failed. {0}",ex.Message))
        {
            
        }
        public AuthorizationException(string statusDescription) :
            base(new Exception(statusDescription), HttpStatusCode.Unauthorized, statusDescription)
        {

        }
    }
}
